/*
 * Sulfurix.cpp
 *
 *  Created on: 08/03/2013
 *      Author: eusyar
 */

#include "game/towers/Sulfurix.h"
#include "util/Helpers.h"

#include <iostream>

using namespace eats_helpers;

bool Sulfurix::setUp()
{
	return TowerEntitie::setUp();
}
bool Sulfurix::update()
{
	return TowerEntitie::update();
}
bool Sulfurix::tearDown()
{
	return TowerEntitie::tearDown();
}

Sulfurix::Sulfurix(SDL_Surface * surface, int posX, int posY) : TowerEntitie(surface, posX, posY)
{
	_range = 200;
	_velocity = 300;
	_damage = TowersIndex::SUFURIX_DEMAGE;
	_tile_size = TowersIndex::SUFURIX_TILE_SIZE;
	_price = TowersIndex::SUFURIX_PRICE;
}

bool Sulfurix::loadAndEnableAnimation()
{
	animation = new Animation(workingSurf, getImgPath().append( PathHelper::resourceResolution() ).append(".png"),
			&position->x, &position->y, false, 1 , _tile_size);
	animation -> _canonical_name = "Catodix Anim";
	animation -> _id = "DATAXXXIII";
	addComponent(animation);
	enableComponent(animation);

	return true;
}




